import request from '@/utils/request'

//获取医院列表
export function getHospitalList (params) {
  return request({
    params,
    url: '/sys/back/wxHospital/getHospitalList'
  })
}
//新增医院
export function addHospital (data) {
  return request({
    method:'post',
    data,
    url:'/sys/back/wxHospital/addHospital'
  })
}

//编辑医院
export function updHospital (data) {
  return request({
    method:'post',
    data,
    url:'/sys/back/wxHospital/updHospital'
  })
}

//删除医院
export function delHospital (data) {
  return request({
    method:'post',
    data,
    url:'/sys/back/wxHospital/delHospital'
  })
}


//查询管理员手机号
export function getWagentList (params) {
  return request({
    params,
    url: '/sys/back/wxHospital/getWagentList'
  })
}

//获取医院详情
export function getHospital (params) {
  return request({
    params,
    url: '/sys/back/wxHospital/getHospital'
  })
}

//医院详情中的套餐列表
export function getChargeRulesList(params) {
  return request({
    params,
    url: '/sys/back/wxChargeRules/getChargeRulesList'
  })
}

//医院详情中的新增套餐
export function addChargeRules(data) {
  return request({
    method:'post',
    data,
    url:'/sys/back/wxChargeRules/addChargeRules'
  })
}

//医院详情中的修改套餐
export function updChargeRules(data) {
  return request({
    method:'post',
    data,
    url:'/sys/back/wxChargeRules/updChargeRules'
  })
}

//医院详情中的新增套餐
export function delChargeRules(data) {
  return request({
    method:'post',
    data,
    url:'/sys/back/wxChargeRules/delChargeRules'
  })
}

//科室病房床位列表
export function getDeptList(params) {
  return request({
    params,
    url: '/sys/back/wxDept/getDeptList'
  })
}


//添加科室病房床位
export function addDept(data) {
  return request({
    method:'post',
    data,
    url:'/sys/back/wxDept/addDept'
  })
}

//编辑科室病房床位
export function updDept(data){
  return request({
    method:'post',
    data,
    url:'/sys/back/wxDept/updDept'
  })
}

//删除科室病房床位
export function delDept(data){
  return request({
    method:'post',
    data,
    url:'/sys/back/wxDept/delDept'
  })
}

//科室病房下拉框
export function getComboBoxList(params){
  return request({
    params,
    url:'/sys/back/wxDept/getComboBoxList'
  })
}

//绑定设备
export function bindEquipment(data){
  return request({
    method:'post',
    data,
    url:'/sys/back/wxEquipment/bindEquipment'
  })
}

//解绑设备
export function updIsBinding(data){
  return request({
    method:'post',
    data,
    url:'/sys/back/wxEquipment/updIsBinding'
  })
}

























